
const formatTime = function (dateString) {
    const date = new Date(dateString);
    const year = date.getFullYear();
    const month = String(date.getMonth() + 1).padStart(2, '0');
    const day = String(date.getDate()).padStart(2, '0');
    const hours = String(date.getHours()).padStart(2, '0');
    const minutes = String(date.getMinutes()).padStart(2, '0');
    const seconds = String(date.getSeconds()).padStart(2, '0');

    const formattedDateTime = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
    return formattedDateTime
}
const mapStutas = function (Stuta) {
    if(Stuta == 0) {
        return '待确认'
    } else if(Stuta == 1) {
        return '已同意'
    } else if(Stuta == '2') {
        return '已拒绝'
    } else if(Stuta == '3') {
        return '已完成'
    } else if(Stuta == '4') {
        return '已取消'
    }
}

export {
    formatTime,
    mapStutas
}
